package controller;

import java.io.IOException;
import java.util.logging.Logger;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/*
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
*/

@Controller
public class IndexController {
	
	
	//static final Logger logger = LogManager.getLogger(IndexController.class.getName());
	final static Logger LOGGER = Logger.getLogger(BusinessController1.class.getName());
	
    public IndexController() {
        super();
    }

    @RequestMapping(value="/Index", method = RequestMethod.GET)
	public String doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    	return doPost(request, response);
	}

    @RequestMapping(value="/Index", method = RequestMethod.POST)
	public String  doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    	//logger.debug("doPost");		
		//logger.debug("originalURI = "+request.getAttribute("originalURI"));
    	return "Index";
	}

}
